#include "select.h"

int main(){
	int a[] = {1,2,3,4,5};
	int b[5];
	while (std::next_permutation(a,a+5)){
		copy(a,a+5,ostream_iterator<int>(cout,"_"));
		copy(a,a+5,b);
		cout<<"====================";
		___insertion_sort(a,a+5);
		copy(a,a+5,ostream_iterator<int>(cout,"_"));
		cout<<"--------------------------------------------------"<<endl;
		copy(b,b+5,a);
	}
	return 0;

}
